package com.zxj.transfer.orm.service;

import com.zxj.transfer.orm.dao.TTryLogMapper;
import com.zxj.transfer.orm.po.TTryLog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TTryLogService {

    @Resource
    private TTryLogMapper tryLogMapper;

    public boolean isExist(String tid) {
        TTryLog log = tryLogMapper.selectByTid(tid);
        return log != null;
    }

    public int insert(String tid) {
        return tryLogMapper.insert(tid);
    }
}
